<div style="width: 395px;" class="yvo-widget-2col">
    <div class="ui-widget-header ui-corner-all">
        <div class="ui-state-default yvo-widget-header">
            <?php echo __('Blocking times') ?>
        </div>
    </div>
    
    <div class="ui-widget-content ui-corner-all">
        <div class="yvo-buttons">
        	<input id="add_block_time" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only ui-button-text" type="button" value="<?php echo __('Add new block time') ?>" />
        </div>
					
        <div style="height: 200px; overflow-x:hidden; overflow-y: scroll;">
            <table id="reservation_table"  class="yvo-w100">
                <thead>
                    <tr>
                        <th class=" ui-widget-header ui-corner-left" scope="col" colspan="2"  style="height: 21px;"><?php echo __('Start') ?></th>
                        <th class=" ui-widget-header" scope="col" colspan="2"><?php echo __('End') ?></th>
                        <th class=" ui-widget-header" scope="col"><?php echo __('Reason') ?></th>
                        <th class=" ui-widget-header ui-corner-right" scope="col">&nbsp;</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach ($block_times as $time): ?>
                    <tr>
                        <td class=" ui-highlight"><?php echo date('d-m-Y', strtotime($time['date_start'])) ?></td>
                        <td class=" ui-highlight"><?php echo $time['time_start'] ?></td>
                        <td class=" ui-highlight"><?php echo date('d-m-Y', strtotime($time['date_end'])) ?></td>
                        <td class=" ui-highlight"><?php echo $time['time_end'] ?></td>
                        <td class=" ui-highlight"><?php echo $time['reason'] ?></td>
                        <td class=" ui-highlight" style="height: 15px;">
                        	<a id="block_time_delete_<?php echo $time['settings_dead_time_id'] ?>" 
                        		href="<?php echo url_for('@settings_block_time_delete?id=' . $time['settings_dead_time_id']) ?>">
                        		<span class=" ui-state-default ui-corner-all" title="<?php echo __('delete'); ?>">
									<span class="ui-icon ui-icon-minusthick"></span>
								</span>
							</a>
						</td>
                    </tr>
                    <?php endforeach ?>
                </tbody>
            </table>
            
        </div>
    </div>
</div>
